package com.bwda.dsrs.filecenter.domain.form.sensitivelevel;

import com.bwda.dsrs.filecenter.domain.form.sensitiverule.SensitiveRuleCreateForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.util.List;

/**
 * 敏感等级新增参数Form
 *
 * @author zhangyinmei
 * @date 2019年4月29日
 */
@Data
@ApiModel(description = "敏感等级")
public class SensitiveLevelCreateForm {

	@ApiModelProperty(value = "名称", required = true)
	@Size(min = 0, max = 64 ,message = "最长不超过64，请重新输入！")
	@NotNull(message = "名称不能为空！")
	private String name;

    @ApiModelProperty(value = "等级:01234", required = true, allowableValues = "0,1,2,3,4")
    private Integer sensitiveLevel;

	@ApiModelProperty(value = "敏感匹配规则 ：0与 1或", required = true,allowableValues = "0,1")
	private Integer sensitiveRel;

    @ApiModelProperty(value = "敏感等级规则集合:敏感字段ID&最少次数&最大次数")
	private List<SensitiveRuleCreateForm> sensitiveRuleStrList;

}